package com.yunji.web.cabinet;

import com.yunji.cabinet.business.FillCargoBusiness;
import com.yunji.cabinet.domain.FillCargoInfoDO;
import com.yunji.cabinet.dto.FillCargoDTO;
import com.yunji.common.base.response.Response;
import com.yunji.common.base.response.ResponseHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.web.cabinet
 * @Title: FillCargoController
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-11-02 10:18:02      V1.0        HuaAo       新建类
 */
@Api(tags = "管理端-补货详情")
@RestController
@RequestMapping("/container/fillCargo")
public class FillCargoController {

    @Resource
    FillCargoBusiness business;

    @ApiOperation("补货详情查询")
    @GetMapping("/list")
    public Response<List<FillCargoInfoDO>> list(FillCargoDTO param) {
        return ResponseHelper.successWithPage(business.search(param));
    }

}